<?php
require_once 'Snoopy.class.php';
require_once 'getip.class.php';

//地址存放数组
$ipaddress = [];
//页面遍历数
$k = 1;
$ck='';
//temp临时变量
if (!is_null($_POST("cookies"))){
$ck=$_POST("cookies");
}else
{
    echo '请输出COOKIES进行注入';
}

if (!is_null($_POST("num")))
{
  $k=$_POST("num")  ;
}

$class = new getip();

for ($i = 1; $i < $k; $i++) {
    $class->init(new Snoopy())->catchip($i);
}
//    $ipaddress = getip::$ip;
//var_dump($ipaddress);
//echo (count($ipaddress)-1);
for ($st = 0; $st < (count(getip::$ip)); $st++) {
//        print_r($ipaddress[$st]);
 $class->scan(getip::$reip[$st],getip::$repo[$st]);

 
 
 
 
 
}